﻿using System.ComponentModel.DataAnnotations.Schema;

namespace JST.TPLMS.Entitys;

public class Cargo
{
    public Cargo()
    {
        this.Id = 0;
        this.SupplierId = 0;
        this.CargoCode = string.Empty;
        this.CargoName = string.Empty;
        this.Brand = string.Empty;
        this.Country = string.Empty;
        this.CreateTime = DateTime.Now;
        this.Curr = string.Empty;
        this.GrossWt = 0;
        this.Height = 0;
        this.HSCode = string.Empty;
        this.Length = 0;
        this.MaxNum = 100;
        this.MinNum = 0;
        this.NetWt = 0;
        this.Package = string.Empty;
        this.Price = 0;
        this.Remark = string.Empty;
        this.Spcf = string.Empty;
        this.Unit = string.Empty;
        this.UpdateTime = DateTime.Now;
        this.UpdOper = string.Empty;
        this.Vol = 0;
        this.Width = 0;
    }

    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public int Id { get; set; }

    public int SupplierId { get; set; }

    public string CargoCode { get; set; }

    public string HSCode { get; set; }
    public string CargoName { get; set; }
    public string Spcf { get; set; }
    public string Unit { get; set; }
    public string Country { get; set; }
    public string Brand { get; set; }
    public string Curr { get; set; }
    public string Package { get; set; }
    public decimal Length { get; set; }
    public decimal Width { get; set; }
    public decimal Height { get; set; }
    public decimal Vol { get; set; }

    public decimal MinNum { get; set; }
    public decimal MaxNum { get; set; }
    public decimal Price { get; set; }
    public decimal GrossWt { get; set; }

    public decimal NetWt { get; set; }
    public string Remark { get; set; }

    public DateTime CreateTime { get; set; }
    public DateTime UpdateTime { get; set; }
    public string UpdOper { get; set; }
}